<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <cpn1></cpn1>
  </div>

  <template id="cpn1">
    <div>
      <h1>我是标题</h1>
      <p>我是内容，哈哈哈哈</p>
    </div>
  </template>

  <script src="./js/vue.js"></script>
  <script>
    const app = new Vue({
      el: "#app",
      components: {
        cpn1: {
          template: "#cpn1",
        },
      }
    })
  </script>
</body>
</html>